/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.playground.client.websockets.entity.message.response;

import com.playground.client.websockets.entity.message.Action;

/**
 *
 * @author Tiago Peres
 */
public class MakeMoveResponseMessage extends ResponseMessage {
    // id of the player who executed the move
    private Long playerId;
    private Integer sourceSquarePosition;
    private Integer destinationSquarePosition;
    private Boolean gameOver;
    // set if the game is over and it's not a draw
    private Long winnerId;
    // id of the player in turn after the move was made
    private Long playerInTurnId;
    
    public MakeMoveResponseMessage(){
        setAction(Action.makeMove);
    }

    public Long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(Long playerId) {
        this.playerId = playerId;
    }

    public Integer getSourceSquarePosition() {
        return sourceSquarePosition;
    }

    public void setSourceSquarePosition(Integer sourceSquarePosition) {
        this.sourceSquarePosition = sourceSquarePosition;
    }

    public Integer getDestinationSquarePosition() {
        return destinationSquarePosition;
    }

    public void setDestinationSquarePosition(Integer destinationSquarePosition) {
        this.destinationSquarePosition = destinationSquarePosition;
    }

    public Boolean getGameOver() {
        return gameOver;
    }

    public void setGameOver(Boolean gameOver) {
        this.gameOver = gameOver;
    }

    public Long getWinnerId() {
        return winnerId;
    }

    public void setWinnerId(Long winnerId) {
        this.winnerId = winnerId;
    }

    public Long getPlayerInTurnId() {
        return playerInTurnId;
    }

    public void setPlayerInTurnId(Long playerInTurnId) {
        this.playerInTurnId = playerInTurnId;
    }
}
